package edu.maplef.bookwild.action;

public class HomeAction extends BaseAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4852000355401117408L;

	private String currentUserId = null;

	public String home() {
		if (!isLogin())
			addActionError("user not loggin");
		else
			currentUserId = getLoginUser().getId();
		return SUCCESS;
	}

	public String getCurrentUserId() {
		return currentUserId;
	}

	public void setCurrentUserId(String currentUserId) {
		this.currentUserId = currentUserId;
	}
}
